#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "grpceventdispatchercore.h"
#include "grpceventbase.h"
#include "grpceventdef.h"
MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
}

MainWindow::~MainWindow()
{
    delete ui;
}


void MainWindow::on_pushButton_clicked()
{
    EventParamNull param;
    g_pEventDispatcher->DispatchRemote(StopTest, &param, "CTC");
    g_pEventDispatcher->DispatchRemote(StopTest, &param, "LiXinJi");

}


void MainWindow::on_pushButton_2_clicked()
{
    EventParamNull param;
    g_pEventDispatcher->DispatchRemote(ResetDevice, &param, "CTC");
    g_pEventDispatcher->DispatchRemote(ResetDevice, &param, "LiXinJi");

}


void MainWindow::on_pushButton_3_clicked()
{
    EventParamNull param;
    g_pEventDispatcher->DispatchRemote(StartTest, &param, "CTC");
    //g_pEventDispatcher->DispatchRemote(StartTest, &param, "LiXinJi");

}

